package com.cloudbroker.bcs.platform.dav.middle.dao;

import com.cloudbroker.bcs.platform.dav.middle.dao.base.TenantDAOBase;
import com.cloudbroker.bcs.platform.dav.middle.entity.BrokerFinance;
import com.cloudbroker.bcs.platform.dav.middle.entityexample.BrokerFinanceQueryCondition;
import com.cloudbroker.bcs.platform.dav.middle.entityview.VoteRecordListView;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by zhaojp18008 on 2017/1/3.
 */
public interface BrokerFinanceDAO extends TenantDAOBase<BrokerFinance, Long> {
    BrokerFinance findTodayImport(@Param("tenant_id")Integer tenant_id,
                                  @Param("broker_id")Long broker_id,
                                  @Param("today") Date today);

    List<BrokerFinance> findFinanceList(@Param("tenant_id")Integer tenant_id, @Param("today")Date today);

    Date getLastImportTime(@Param("tenant_id")Integer tenantId);

    List<VoteRecordListView> getFinanceOrderList(BrokerFinanceQueryCondition condition);
}
